export function stringToNumberId(str:string) {
    let hash = 0;
    for (let i = 0; i < str.length; i++) {
      const char = str.charCodeAt(i);
      hash = ((hash << 5) - hash) + char;
      hash = hash | 0; // 转换为32位整数
    }
    return Math.abs(hash);
  }